package com.zy.struts.domain;

import java.util.Date;
import java.util.Set;

public class User {

	private String id;
	private String name;
	private String password;
	private String userId;

	private boolean flag;
	private Date registTime;
	private Date lastLoginTime;
	private String lastLoginIp;
	private Set<Message> senderMessages;
	private Set<Message> reciverMessages;

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public boolean isFlag() {
		return flag;
	}

	public void setFlag(boolean flag) {
		this.flag = flag;
	}

	public Set<Message> getSenderMessages() {
		return senderMessages;
	}

	public void setSenderMessages(Set<Message> senderMessages) {
		this.senderMessages = senderMessages;
	}

	public Set<Message> getReciverMessages() {
		return reciverMessages;
	}

	public void setReciverMessages(Set<Message> reciverMessages) {
		this.reciverMessages = reciverMessages;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Date getRegistTime() {
		return registTime;
	}

	public void setRegistTime(Date registTime) {
		this.registTime = registTime;
	}

	public Date getLastLoginTime() {
		return lastLoginTime;
	}

	public void setLastLoginTime(Date lastLoginTime) {
		this.lastLoginTime = lastLoginTime;
	}

	public String getLastLoginIp() {
		return lastLoginIp;
	}

	public void setLastLoginIp(String lastLoginIp) {
		this.lastLoginIp = lastLoginIp;
	}

}
